<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>dept_detail.jsp</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link rel="stylesheet" type="text/css" href="./css/style.css">


	</head>

	<body>

		<div id="blue_button">
			<div id="blue_button_word">
				&nbsp;员工管理
			</div>
		</div>

		<div id="right_background">
			&nbsp;
			<br />
			<br />
			<br />
			<br />
			<form action="./emp/empEditAction" method="post">
				<table cellspacing="1" class="tab_dept_detail">
					<tr class="tab_header_detail">
						<td class="right" style="width: 150px;">
							员工编号
						</td>
						<td class="left" style="width: 200px;" background="green">

							<input type="text" id="" readonly="readonly" name="emp.EId"
								value="${emp.EId}" />
						</td>

						<td class="right" style="width: 150px;">
							部门编号
						</td>
						<td class="left">
							<select name="emp.EDeptno"
								style="width: 150px; font-color: darkblue;">
								<s:iterator value="dept" var="dept">
								
									<option value="<s:property value="#dept.dname"/>" <s:if test="emp.EDeptno == #dept.deptno">selected</s:if>>
										<s:property value="#dept.dname" />
									</option>
								</s:iterator>

							</select>
						</td>
					</tr>
					<tr class="tab_header_detail">

						<td class="right">
							员工姓名
						</td>
						<td class="left">
							<input type="text" id="" name="emp.EName" value="${emp.EName}" />

						</td>

						<td class="right">
							员工职位
						</td>
						<td class="left">
							<input type="text" id="" name="emp.EJob" value="${emp.EJob}" />
							
						</td>
					</tr>
					<tr class="tab_header_detail">
						<td class="right">
							邮件
						</td>
						<td class="left">
							<input type="text" id="" name="emp.EEmail" value="${emp.EEmail}" />

						</td>

						<td class="right">
							联系电话
						</td>
						<td class="left">
							<input type="text" id="" name="emp.EPhone" value="${emp.EPhone}" />

						</td>

					</tr>
					<tr class="tab_header_detail">
						<td class="right">
							员工简述
						</td>
						<td class="left" colspan="10">
							<div align="left">
								<textarea rows="5" cols="80" name="emp.EDescribe" id=""
									style="float: left;">${emp.EDescribe}</textarea>
							</div>
						</td>
					</tr>
				</table>
				<div align="center">
					<input type="submit" value="提交修改" />
				</div>
			</form>
		</div>
		<div align="center">
			<input type="button" class="add" value="返 回&nbsp;&gt;&gt;"
				onclick="history.go(-1)" />
			&nbsp;&nbsp;
		</div>
	</body>
</html>
